//
//  TextLists.h
//  SocialChair
//
//  Created by Kelly Heffner Wilkerson on 9/27/10.
//  Copyright 2010 Decipher Media, LLC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Utilities.h"

#define TEXT_LIST_FILENAME @"TextLists.plist"
#define LIST_KEY @"RECIPIENT LIST"
#define NAME_KEY @"LIST NAME"
#define IMAGE_KEY @"LIST IMAGE"

#define PERSON_NAME_KEY @"Person Name"
#define PERSON_NUMBER_KEY @"Person Number"
#define PERSON_LABEL_KEY @"Person Label"

@interface TextLists : NSObject {
	NSMutableArray *theLists;
	
	UIImagePickerController *imagePicker;
}
-(void)writeToFile:(BOOL)atomic;
-(int)count;
-(NSArray*)getListAtIndex:(int)index;

-(int)newGroup;
-(void)deleteGroupAtIndex:(int)index;

-(NSString*)getListNameAtIndex:(int)index;
-(void)setListName:(NSString*)newName atIndex:(int)index;

-(void)addPersonAtListIndex:(int)index withName:(NSString*)name number:(NSString*)number andLabel:(NSString*)label;
-(void)deletePersonAtListIndex:(int) index withPersonIndex:(int)i;

-(void)addGroupPicture:(UIImage*)image forIndex:(int)index;
-(UIImage*)getGroupPictureForIndex:(int)index;

-(NSString*)group:(int)index memberNameAtIndex:(int)i;
-(NSString*)group:(int)index memberNumberAtIndex:(int)i;
-(NSString*)group:(int)index memberLabelAtIndex:(int)i;
-(NSArray*)getNumbersForGroup:(int)index;

-(UIImagePickerController*)getPicker;
@end
